package com.dhecp.core.enums;

/**
 * 前台字段显示类型
 * @author DH-Xxj
 * @version 2019年10月21日
 */
public enum FieldFrontTempletType {
	//p_开头的表示带“%”
	T_Text("t_text","文本"),
	T_TextArea("t_textarea","文本区域"),
	T_Price("t_price","单价"),
	T_Sum("t_sum","金额"),
	T_Number("t_number","数量"),
	T_Percent("t_percent","百分比"),
	P_Percent("p_percent","百分比 + %"),
	T_Appoint0("t_appoint0","0位小数"),
	T_Appoint1("t_appoint1","1位小数"),
	T_Appoint2("t_appoint2","2位小数"),
	T_Appoint3("t_appoint3","3位小数"),
	T_Appoint4("t_appoint4","4位小数"),
	T_Appoint5("t_appoint5","5位小数"),
	T_Appoint6("t_appoint6","6位小数"),
	P_Appoint0("p_appoint0","0位小数 + %"),
	P_Appoint1("p_appoint1","1位小数 + %"),
	P_Appoint2("p_appoint2","2位小数 + %"),
	P_Appoint3("p_appoint3","3位小数 + %"),
	P_Appoint4("p_appoint4","4位小数 + %"),
	P_Appoint5("p_appoint5","5位小数 + %"),
	P_Appoint6("p_appoint6","6位小数 + %");

    private String code;
    private String info;

    FieldFrontTempletType(String code, String info){
        this.code = code;
        this.info = info;
    }

    public String getCode(){
        return code;
    }

    public String getInfo(){
        return info;
    }
}
